/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.employee.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.employee.entity.EmployeeLeave;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 员工假期DAO接口
 * @author hui.li
 * @version 2017-07-18
 */
@MyBatisDao
public interface EmployeeLeaveDao extends CrudDao<EmployeeLeave> {

    double queryEmployeeLeaveByUserAndDays(@Param("number") String number, @Param("monday")  Date monday, @Param("date") Date date, @Param("typeCode") String typeCode);
    
    List<EmployeeLeave> queryByUserAndDate(@Param("number") String number,@Param("typeCode") String typeCode,@Param("startDate") Date startDate,@Param("endDate") Date endDate);
    
    /**
     * 
     * 查询除了英国员工的请假
     * @return
     */
    List<EmployeeLeave> queryWithoutUK();
}